﻿using UnityEngine;
using System.Collections;

namespace FSM
{
    public class ActionInvoke:Action
    {
        public System.Action func;
        protected override bool OnUpdate()
        {
            var b = true;
            if(func != null)
            {
                func();
            }
            return b;
        }
        public override void Init(params object[] param)
        {
            var length = param.Length;
            if(length >0)
            {
                var v0 = param[0];
                var func0 = (System.Action)v0;
                func = func0;
            }
        }
    }
}
